home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / AEWIN100.ARJ / TEST.CC < prev    next >
C/C++ Source or Header  |  1991-10-28  |  465b  |  31 lines

  1. #include    "w.h"
  2.  
  3. void
  4. main()
  5. {
  6.     initscr(LASTMODE, "W");
  7.     
  8.     Window w(10,10,20,60);
  9.     
  10.     w.setmap(0, 7);
  11.     w.setmap(1, 112);
  12.     w << setattr(1);
  13.     w.frame(Window::boxLine2, Window::boxLine2);
  14.     w.closebox();
  15.     w << setattr(0) << clear;
  16.     w.maketop();
  17.  
  18.     for (int i = 0;i < 10; i++)
  19.         w.printf("%d ", i).refresh();
  20.     
  21.     w.NL();
  22.  
  23.     uchar   buf[100];
  24.     
  25.     w.getstr(buf);
  26.     
  27.     w.getkey();
  28.  
  29. }
  30.  
  31.